package gear;

import java.io.IOException;
import java.net.URISyntaxException;

import junit.framework.Assert;

import org.apache.http.client.ClientProtocolException;
import org.junit.Test;
import org.webgene.util.HTTPGetter;

public class HttpHandler {
	private String url = "http://maps.google.com/maps/api/geocode/json?address=Venture%20Town%20Bldg,%2025-1%20Jeongja-dong,%20Bundang-gu,%20Seongnam-si,%20Gyeonggi-do&sensor=false";
	@Test
	public void httpGetter(){
		HTTPGetter getter = new HTTPGetter();
		try {
			String body = getter.request(url);
			System.out.println(body);
			Assert.assertNotNull(body);
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
}
